package cn.edu.zafu.bigdata.yt.yichangchuli;

public class TestInvalidAgeException_yt {
    public static void main(String[] args) {
        try {
            AgeValidator_yt.checkAge(20);

            AgeValidator_yt.checkAge(15);
        } catch (InvalidAgeException_yt e) {
            System.out.println("Error: " + e.getMessage());
        }
    }
}
